home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / windownt / uupc11yt.zip / UTIL / INSTALL.C < prev    next >
C/C++ Source or Header  |  1993-04-10  |  3KB  |  84 lines

  1. /*--------------------------------------------------------------------*/
  2. /*    i n s t a l l . c                                               */
  3. /*                                                                    */
  4. /*    Install/upgrade program for UUPC/extended                       */
  5. /*                                                                    */
  6. /*    Copyright (c) 1992 by Andrew H. Derbyshire                      */
  7. /*--------------------------------------------------------------------*/
  8.  
  9. /*--------------------------------------------------------------------*/
  10. /*                          RCS Information                           */
  11. /*--------------------------------------------------------------------*/
  12.  
  13. /*
  14.  *    $Id: INSTALL.C 1.3 1993/04/11 00:33:54 ahd Exp $
  15.  *
  16.  *    Revision history:
  17.  *    $Log: INSTALL.C $
  18.  * Revision 1.3  1993/04/11  00:33:54  ahd
  19.  * Global edits for year, TEXT, etc.
  20.  *
  21.  * Revision 1.2  1993/04/04  04:57:01  ahd
  22.  * *** empty log message ***
  23.  *
  24.  * Revision 1.1  1992/11/15  04:29:22  ahd
  25.  * Initial revision
  26.  *
  27.  */
  28.  
  29. static char rcsid[] =
  30.       "$Id: INSTALL.C 1.3 1993/04/11 00:33:54 ahd Exp $";
  31.  
  32. /*--------------------------------------------------------------------*/
  33. /*                      Standard C include files                      */
  34. /*--------------------------------------------------------------------*/
  35.  
  36. #include <stdio.h>
  37. #include <stdlib.h>
  38.  
  39. /*--------------------------------------------------------------------*/
  40. /*                     UUPC/extended include files                    */
  41. /*--------------------------------------------------------------------*/
  42.  
  43. #include "lib.h"
  44. #include "timestmp.h"
  45.  
  46. /*--------------------------------------------------------------------*/
  47. /*                          Local prototypes                          */
  48. /*--------------------------------------------------------------------*/
  49.  
  50. /*--------------------------------------------------------------------*/
  51. /*    m a i n                                                         */
  52. /*                                                                    */
  53. /*    Main program                                                    */
  54. /*--------------------------------------------------------------------*/
  55.  
  56. void main( int argc, char **argv )
  57. {
  58.  
  59. /*--------------------------------------------------------------------*/
  60. /*                       Announce our parentage                       */
  61. /*--------------------------------------------------------------------*/
  62.  
  63.    banner( argv );
  64.  
  65. /*--------------------------------------------------------------------*/
  66. /*         Determine if UUPC/extended may have been installed         */
  67. /*--------------------------------------------------------------------*/
  68.  
  69.    if (getenv(UUPCSYSRC) == NULL )
  70.       installed = FALSE;
  71.  
  72.    if (installed)
  73.       update();
  74.    else
  75.       install();
  76.  
  77. } /* main */
  78.  
  79. /*--------------------------------------------------------------------*/
  80. /*       i n s t a l l                                                */
  81. /*                                                                    */
  82. /*       Perform a basic install of UUPC/extended                     */
  83. /*--------------------------------------------------------------------*/
  84.